package top.chatgqt.SmartChargeStation.service;

import org.apache.iotdb.isession.pool.SessionDataSetWrapper;
import org.apache.iotdb.rpc.IoTDBConnectionException;
import org.apache.iotdb.rpc.StatementExecutionException;

import java.util.List;

public interface IoTDBService {

    /**
     * 根据自定义sql语句查询数据
     */
    SessionDataSetWrapper executeQueryStatement(String sql) throws IoTDBConnectionException, StatementExecutionException;

    /**
     * 根据时间查询数据
     */
    SessionDataSetWrapper executeRawDataQuery(List<String> paths, long startTime, long endTime, long TimeOut) throws IoTDBConnectionException, StatementExecutionException;

}
